﻿#include "IniFile.h"
#include "StdioFileEx.h"
#include "obj.h"
#include "Dm.h"
#include <map>
#include "GameDlg.h"
using namespace std;

#define ConfigFile  _T(".//Config.ini")
#define AccountFile _T(".//Account.ini")
extern CDm * g_dm;
extern CIniFile g_IniFile;
extern CIniFile g_AccountFile;
extern CString arrState[];
extern bool CheckState;
extern bool g_flag;//全局状态
extern bool g_bloodState;//加血检测
extern int g_nState;
extern bool g_bSwicth;
extern map<CString, OcrInfo>ocrMap;
extern map<CString, OcrBase>baseMap;
extern CString arrLineCode[20];
extern int g_Point[12][2];
extern int gTime;
extern int nCountTime;
void StringSplit(CString source, CStringArray& dest, char division);
DWORD RandomNumber(DWORD dwNumber1, DWORD dwNumber2);
void KillProcess(CString sExeName);
CString NumberToString(LONG Number);
int SplitVARIANT(CString strSrc, VARIANT* nlist, CString division);
int Split(CString source, CString* array, CString divKey);
const char* StrP(CString str);
void ShowLog(CString str);
CString GetItemText(int taskIndex, int itemIndex);

